/*
版权@hehung所有，转载请申明
email：1398660197@qq.com
*/
#ifndef __APP_KV__
#define __APP_KV__

#include <stdint.h>


#define KV_NONE                    (0U)

typedef enum
{
    KV_VOLUME_VALUE = 0,
    KV_SOUND_EFFECT,
    KV_SOUND_TIME,
    KV_NTP,
    KV_CITY,
    KV_WIFI_SSID_S,
    KV_WIFI_PWD_S,
    KV_WIFI_SSID_LEN,
    KV_WIFI_PWD_LEN,
    KV_CLOCK_1,
    KV_CLOCK_2,
    KV_CLOCK_3,
    KV_CLOCK_4,
    KV_CLOCK_5,
    KV_CLOCK_6,
    KV_CLOCK_7,
    KV_CLOCK_8,
    KV_CLOCK_9,
    KV_CLOCK_10
} e_KvSaveType;


extern void Kv_Init(void);
extern uint8_t Kv_GetSaveStatus(e_KvSaveType kv_num);
extern void Kv_WriteData(e_KvSaveType kv_num, int value);
extern int Kv_ReadData(e_KvSaveType kv_num);
extern void Kv_DelData(e_KvSaveType kv_num);
extern void Kv_WriteDataString(e_KvSaveType kv_num, char *wDate, int len);
extern int Kv_ReadDataString(e_KvSaveType kv_num, char *rData, int len);

#endif
